<!-- Running classes section start here -->
<section class="running-classes">
    <div class="row">
        <div class="container">
            <div class="col-lg-12 column12">
                <div class="row">
                    <div class="running-head">
                        Running classes by the same trainer<a href="<?php echo $this->createAbsoluteUrl('/users/runningclasses', array('authKey' => $authKey)); ?>">See all</a>
                    </div>
                </div>
                <div class="row">
                    <div id="owl-current" class="owl-carousel owl-theme">
                        <?php
                        $emptyImage = '<img src="' . getWorkNoshopimage(SkillConfig::skill_literallyending_like_classe_slider) . '"   alt="class" id="classcourse">';
                        foreach ($runningClasses as $classDetail) {
                            if (!empty($classDetail['classes_id'])) {
                                $imageName = ClassImage::getPrimaryImage($classDetail['classes_id']);
                                $courseName = $classDetail['class_titile'];
                                $userDetails = getUserTypeByClassCourse('Classes', $classDetail['classes_id']);
                                $imagePath = getImagePathByClassCourse('Classes', $classDetail['classes_id']);
                                $url = $this->createAbsoluteUrl('/workshop-'.$classDetail['classes_id'].'/'.$classDetail['class_seo_title']);
                            } else {
                                $imageName = ClassImage::getCoursesPrimaryImage($classDetail['courses_id']);
                                $courseName = $classDetail['course_titile'];
                                $userDetails = getUserTypeByClassCourse('Courses', $classDetail['courses_id']);
                                $imagePath = getImagePathByClassCourse('Courses', $classDetail['courses_id']);
                                $url = $this->createAbsoluteUrl('/courses-'.$classDetail['courses_id'].'/'.$classDetail['course_seo_title']);
                            }
                            ?>
                            <div class="current-class">
                                <div class="title-span">
                                    <a href="<?php echo $url; ?>">
                                        <?php echo (!empty($imageName)) ? '<img src="' . getRequestbaseUrl() . getuploadFolderDir() . SkillConfig::getClassCourseImagePath($imagePath) . '240X180/' . $imageName . '" class="img-responsive" alt="' . $courseName . '">' : $emptyImage; ?>  
                                        <span><?php echo substrclasscourname($courseName); ?><small>By <?php echo substr($userDetails->first_name . '  ' . $userDetails->last_name, 0, 30); ?></small></span>
                                    </a>
                                </div>
                            </div><!--current class end here-->
                            <?php
                        }
                        ?>
                    </div><!--===slider end here-->
                    <div class="gap"></div>
                    <div class="customNavigation">
                        <a class="prev6">Previous</a>
                        <a class="next6">Next</a>
                    </div>
                </div>
            </div><!--col-->
        </div><!--container-->
    </div><!--row -->

</section><!--running class ends here-->  
